package org.jeecg.modules.kuner.vipgoodusertime.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author
 * @Classname KrGoodUserTime
 * @Created by
 * @desccription
 */

@Data
@TableName("kr_good_user_time")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="kr_good_user_time对象", description="用户办卡信息")
public class KrGoodUserTime {
  /**主键*/
  @TableId(type = IdType.ASSIGN_ID)
  @ApiModelProperty(value = "主键")
  private String id;
  /**用户id*/
  @ApiModelProperty(value = "用户ID")
  private String userId;
  /**商品id*/
  @ApiModelProperty(value = "商品ID")
  private String goodId;
  /**到期时间*/
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @ApiModelProperty(value = "到期时间")
  private Date exTime;
  /**可用次数*/
  @ApiModelProperty(value = "可用次数")
  private String times;

}
